<div class="row contentBox">
    <app-sidebar-system></app-sidebar-system>
    <div class="contentArea_rightDiv">
        <div class="row txtTitle">
            <input matInput type="text" class="input_style" 
                #queryCriteria="ngModel" 
                placeholder="请输入参数键/参数值/名称" 
                (input)="_retrieval(queryCriteria.value)" 
                (keydown.enter)="_retrieval(queryCriteria.value)" 
                 *ngIf="right['sysconfig']['query']"
                 ngModel
            />
            <button class="btn btn-search btn-blue" style="margin-right: 10px;" 
            (click)="_retrieval(queryCriteria.value)" 
            *ngIf="right['sysconfig']['query']" mat-button>
            查询</button>

            <button class="btn btn-blue" 
                data-toggle="modal" 
                data-target="#newlyAdded"
                *ngIf="right['sysconfig']['create']"
                (click)="initService._init(1)"
                mat-button 
            >新增</button>

            <button class="btn btn-orange" 
                data-toggle="modal" 
                data-target="#delete"
                *ngIf="right['sysconfig']['batchDelete']"
                [disabled]="removeTableService?._isEmpty()" 
                mat-button
             >删除</button>

             <button
                class="btn btn-green"
                mat-button
                [disabled]="removeTableService?._isEmpty()" 
                (click)="_enable()"
                *ngIf="right['sysconfig']['batchEnable']"
            >启用</button>
            <button
                class="btn btn-orange"
                mat-button
                [disabled]="removeTableService?._isEmpty()" 
                (click)="_disable()"
                *ngIf="right['sysconfig']['batchDisable']"
            >禁用</button>

        </div>
        <!-- 表格 BEGIN -->
        <sysconfig-table #table></sysconfig-table>
        <!-- 表格 end -->

        <!-- 分页 BEGIN -->
        <app-pagination [getTotalItems]="table.total" (isLoadTableFromPagination)="_pagination($event)"></app-pagination>
        <!-- 分页 END -->
    </div>
</div>
<!--content  end-->

<!-- 新增 BEGIN -->
<sysconfig-newly-added (onSubmit)="table._table()"></sysconfig-newly-added>
<!-- 新增 END -->

<!-- 删除 BEGIN -->
<sysconfig-delete (delete)="table._table()"></sysconfig-delete>
<!-- 删除 BEGIN -->	
